package com.example.share_doc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.share_doc.util.Base;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "department")
public class Department extends Base {

    @TableId
    private String departmentId;

    private String departmentCode;

    private String departmentName;

    private String departmentParentCode;

    @TableField(exist = false)
    private List<Department> children;
}
